package com.hznu.ucenter.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author cdd
 * @since 2021-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Vehicle implements Serializable {

    private static final long serialVersionUID = 1L;

//    @TableId(value = "vehicle_id", type = IdType.AUTO)
    private Integer vehicleId;

    private String vehicleCard;

    private String vehicleColor;

    private String vehicleBrand;

    private String vehicleType;

    private String vehicleKey;

    private Integer vehicleRsuid;

    private static String REGEX_CHINESE = "[\u4e00-\u9fa5]";// 中文正则
    @Override
    public String toString() {
        return "(" +vehicleCard.replaceAll(REGEX_CHINESE, "") +
                "," + vehicleColor +
                "," + vehicleBrand +
                "," + vehicleType +
                ')';
    }


}
